﻿using System;
using NUnit.Framework;

namespace cshape_demo
{
    [TestFixture]
    public class AbstractClass
    {
        [Test]
        public void TestAbstractClass()
        {
            OneWomen women = new OneWomen();
            women.Eat();
        }
    }

    public abstract class Women
    {
        public abstract void Eat();
    }

    public class OneWomen : Women
    {
        /**
         * 说明:
         * 1. 相当于是抽象方法可以被override关键字修饰并重写.
         */
        public override void Eat()
        {
            Console.WriteLine("eating");
        }
    }
}